
<div class="prod_box">
    <div class="center_prod_box">
        <div class="product_title">

            <?php
            if (isset($search_error)) {
                echo $search_error;
            } else {
                if (isset($query)) {
                    if ($query->num_rows() > 0) {
                        foreach ($query->result() as $row) {
                            echo '
									
									   '. $row->pro_description.'
									</div>
									<div class="product_img">
								
								<div class="gallery">
						<a href="../assets/uploads/original/' . $row->pro_img. '">';

                            $image_properties = array(
                                'src' => 'assets/uploads/thumbs/' . $row->pro_img,
                                'alt' => $row->pro_name,
                                'class' => 'post_images',
                                'width' => '80',
                                'height' => '70',
                                'title' => $row->pro_description,
                                'rel' => 'lightbox',
                            );
                            echo img($image_properties);

                            echo '
                                    </a>
                                </div>
									<div class="prod_price">
										
										<span>' . $row->pro_price . '</span>
									</div>
									
									<div class="prod_details_tab">
										
										<a class="prod_buy" href="#">' . $row->pro_name . '</a>
										<a class="prod_details" href=' . site_url('pages/detail/' . $row->pro_id) . '>Detail</a>
									</div>
									
							';
                        }
                    } else {
                        echo "The result Not found ! Please check and type again ! Thank You !!!";
                    }
                }
            }
            ?>

        </div>
    </div>
</div>
